<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <link rel="shortcut icon" href="favicon.ico"> <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                            <tr>
                                <th>头像</th>
                                <th>名称</th>
                                <th>电话</th>
                                <th>类型</th>
                                <th>认证标签</th>
                                <th>认证申请状态</th>
                                <th>认证描述</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr th:each="obj : ${list}">
                                <td >
                                    <img th:src="${obj.header}" alt="" style="height:50px;">
                                </td>
                                <td th:text="${obj.name}"></td>
                                <td th:text="${obj.phone}"></td>
                                <td>
                                    <span th:if="${obj.type==1}">普通客户</span>
                                    <span th:if="${obj.type!=1}">认证客户</span>
                                </td>
                                <td th:text="${obj.authName}"></td>
                                <td>
                                    <span th:if="${obj.authStatus==0}">未认证</span>
                                    <span th:if="${obj.authStatus==1}">申请认证</span>
                                    <span th:if="${obj.authStatus==2}">认证通过</span>
                                    <span th:if="${obj.authStatus==3}">认证拒绝</span>
                                </td>
                                <td th:text="${obj.authMark}"></td>
                                <td th:attr="oid=${obj.id}">
                                    <span class="btn btn-warning btn-xs" onclick="save(this)">编辑</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/js/plugins/jeditable/jquery.jeditable.js"></script>
<!-- Data Tables -->
<script src="/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<!-- 自定义js -->
<script src="/js/content.js?v=1.0.0"></script>
<script src="/layer/layer.js"></script>
<script src="/base.js"></script>
<!-- Page-Level Scripts -->
<script>
    $(document).ready(function () {
        $('.dataTables-example').dataTable();
    });
    function save(b) {
        var id = $(b).parent().attr("oid");
        layer.open({
            type: 2,
            title: "编辑",
            area: ['800px', "400px"],
            skin: 'layui-layer-molv',
            content: "/customer/save.htm?id="+id,
        });
    }
    



</script>

</body>

</html>
